package com.mzba.place.ui;

import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.widget.TextView;

import com.actionbarsherlock.view.MenuItem;
import com.mzba.place.BasicActivity;
import com.mzba.place.R;
/**
 * 
 * @author 06peng
 *
 */
public class AboutUsActivity extends BasicActivity {

	@Override
	protected void onCreate(Bundle paramBundle) {
		super.onCreate(paramBundle);
		actionBar.show();
		actionBar.setDisplayShowTitleEnabled(true);
		actionBar.setTitle("关于我们");
		setSupportProgressBarIndeterminateVisibility(false);
		setContentView(R.layout.fragment_about);
		TextView tv = (TextView) findViewById(R.id.tv_version);
		try {
			tv.setText("治安雷达" + getPackageManager().getPackageInfo(getPackageName(), 0).versionName + "版");
		} catch (NameNotFoundException e) {
			e.printStackTrace();
		}
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		finish();
		return false;
	}
}
